// src/models/Book.js
export class Book {
  constructor(data = {}) {
    this.id = data.id || null
    this.isbn = data.isbn || ''
    this.title = data.title || ''
    this.author = data.author || ''
    this.genre = data.genre || ''
    this.publicationDate = data.publicationDate || null
    this.available = data.available || false
    this.totalCopies = data.totalCopies || 0
    this.availableCopies = data.availableCopies || 0
  }
}